package ${cfg.parent}.${package.ModuleName}.dto;

<#assign fieldDescriptionMap={}>
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
<#assign hasEnum=false>
<#list table.fields as field>
<#if field.customMap['importPkg'] != 'null'>
import ${field.customMap['importPkg']};
</#if>
<#if field.customMap['EnumTypeName'] != 'null'>
<#assign hasEnum=true>
</#if>
</#list>
<#if hasEnum>
import ${package.Entity}.${table.entityName};
</#if>

/**
*
* ${table.comment!}传输层
*
* @tableName ${table.name}
* @author ${author}
*/
@Data
@ApiModel(value="${entity}对象传输层", description="${table.comment!}传输层")
public class ${entity}DTO implements Serializable{
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Long id;

<#list table.fields as field>
<#if field.comment!?length gt 0>
    /**
     * ${field.comment}
     */
    @ApiModelProperty(value = "${field.comment}")
</#if>
<#if field.customMap['EnumTypeName'] != 'null'>
<#assign fieldDescriptionMap = fieldDescriptionMap + {field.propertyName:field.comment!}>
    private ${table.entityName}.${field.customMap['EnumTypeName']?cap_first!} ${field.propertyName};
<#else>
    private ${field.propertyType} ${field.propertyName};
</#if>

</#list>
}
